package com.sww.pj.sys.pojo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class SwwWz implements Serializable {


	private static final long serialVersionUID = -151174268547422811L;

	private Integer wzid;
	private String wzname;
	private Integer wznum;
	private String wzunit;
	private String wzkind;
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	private Date created;
	private String manufacturer;
	@DateTimeFormat(pattern = "yyyy/MM/dd HH:mm")
	//@JsonFormat用于告诉springmvc 转换为json时将日期按照指定格式进行转换
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm",timezone = "GMT+8")
	private Date startTime;
	@DateTimeFormat(pattern = "yyyy/MM/dd HH:mm")
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm",timezone = "GMT+8")
	private Date endTime;

}
